#include "LineList.h"

LineList::LineList(int nrOfLines):
m_CurrentIndex(0),
m_NrOfLines(nrOfLines),
m_Valid(false)
{
	m_Indices = new unsigned int[nrOfLines*2];
}

LineList::~LineList(void)
{
	delete[] m_Indices;
}

void LineList::AddIndexedLine(int index1,int index2)
{
	m_Indices[m_CurrentIndex++]=index1;
	m_Indices[m_CurrentIndex++]=index2;
	CheckIndex(index1);
	CheckIndex(index2);
}

unsigned int LineList::GetSizeInBytes(){
	return m_NrOfLines*2*sizeof(unsigned int);
}